luci-proto-openfortivpn: make PEM key+CA optional
authorPaul Donald <[email protected]>
Tue, 10 Jun 2025 13:02:25 +0000 (15:02 +0200)
committerPaul Donald <[email protected]>
Tue, 10 Jun 2025 13:02:25 +0000 (15:02 +0200)
Fixes #7812

Some authentications schemes using username+password might already be
sufficient.

Signed-off-by: Paul Donald <[email protected]>
protocols/luci-proto-openfortivpn/htdocs/luci-static/resources/protocol/openfortivpn.js

index ae26aaa569de58ad43d63ac5b09f18c665c4af5e..48718afc269edbde19bc435f604082178b7fc004 100644 (file)
@@ -116,6 +116,7 @@ return network.registerProtocol('openfortivpn', {
                };
 
                o = s.taboption('general', form.TextValue, 'user_key', _('User key (PEM encoded)'));
+               o.optional = true;
                o.rows = 10;
                o.monospace = true;
                o.validate = L.bind(validateCert, o, true);
@@ -128,6 +129,7 @@ return network.registerProtocol('openfortivpn', {
                };
 
                o = s.taboption('general', form.TextValue, 'ca_file', _('CA certificate (PEM encoded; Use instead of system-wide store to verify the gateway certificate.'));
+               o.optional = true;
                o.rows = 10;
                o.monospace = true;
                o.validate = L.bind(validateCert, o, false);